package com.jfsnpm.jfsnpm.core.impl;

import com.jfsnpm.jfsnpm.core.dao.User;
import com.jfsnpm.jfsnpm.core.global.IFlowArgs;
import com.jfsnpm.jfsnpm.core.service.UserService;

public class FlowArgsImpl implements IFlowArgs {

	@Override
	public String getFlowAssignee(String userId, String key) {
		User user = UserService.getUserById(userId);
		if("__userId".equals(key)) return user.getUserId();
		if("__userName".equals(key)) return user.getUserName();
		if("__userMail".equals(key)) return user.getUserMail();
		//TODO:其他用户相关数据的写入
		return null;
	}

}
